<?php
	header("Content-type:text/html;charset=utf-8");
	$number=$_POST["userId"];
	$code=$_POST["usePassword"];
	
	$conn = mysql_connect("localhost","root","root");
	
	mysql_select_db("2107");
	
	$result = mysql_query("select * from register where stu_number='$number' AND stu_code='$code'",$conn);
	
	//echo就是responseText
	if(mysql_num_rows($result)>0){
		echo "1";
	}else{
		echo "0";
	}

	mysql_close($conn);
?>
